package home_work4;

import java.util.ArrayList;
import java.util.List;

public class test3 {

	public static void main(String[] args) {
		List list=new ArrayList();
		list.add("one");
		list.add("two");
		list.add("three");
		list.add("four");
		System.out.println(list);
		Object obj = list.get(1);
	    System.out.println(obj);  
	   list.set(2, "3");
	    System.out.println(list);
	    list.add(1, "2");
	    list.remove(2);
	    System.out.println(list);
	}

}
